-- GENERATED SPELL FOR [Noxious Reaver] --


function spell0_4347(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4347', 30000, 1)
end

function spell1_4347(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(5708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4347', 2272, 1)
end

function Sorts_4347(pUnit, Event)
local choix_sorts_4347 = math.random(0, 1)
if choix_sorts_4347 == 0 then
pUnit:RegisterEvent('spell0_4347', 1, 1)
end
if choix_sorts_4347 == 1 then
pUnit:RegisterEvent('spell1_4347', 1, 1)
end
end

function mob4347_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4347', math.random(1500, 3000), 1)
end

function mob4347_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4347_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4347_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4347, 1, 'mob4347_Action')
RegisterUnitEvent(4347, 2, 'mob4347_Leave')
RegisterUnitEvent(4347, 3, 'mob4347_Kill')
RegisterUnitEvent(4347, 4, 'mob4347_Die')
